const path = require('path');
const dir1 = './dist';
console.log(__dirname)
//__dirname就是当前文件1.js所在的目录的绝对路径
console.log(path.join(__dirname,'dist'))